package com.example.business_oa.service;

import com.example.comment_oa.dubbo.SysEmployeeServiceDubbo;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UpdateSalaryPerson {
    @DubboReference(version = "1.0.0")
    SysEmployeeServiceDubbo sysEmployeeServiceDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public void xiugaixinzi(int salary,int empId){
        sysEmployeeServiceDubbo.updateSalary(salary,empId);
    }

}
